<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head >
    <script type="application/javascript" src="/js/jquery-2.1.4.min.js"></script>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title> - 大麦搜索</title>
    <meta name="spm-id" content="a2oeg" />
    <meta name="keywords" content=",北京,演唱会,,大麦网" />
    <meta name="description" content="大麦网-中国最大票务平台,包括：演出票,电影,球馆预订,门票,在线订票购票服务" />
    <meta name="aplus-auto-exp-visible" content="0.5" />
    <meta name="aplus-auto-exp-duration" content="500" />
    <meta name="aplus-auto-exp" content="[{&quot;logkey&quot;:&quot;/damai_pc.rec.exp&quot;,&quot;tag&quot;:&quot;li&quot;,&quot;filter&quot;:&quot;item_id&quot;,&quot;props&quot;:[&quot;alg&quot;,&quot;item_id&quot;]}]" />
    <link rel="shortcut icon" href="//img.alicdn.com/tfs/TB1RxAHSmrqK1RjSZK9XXXyypXa-16-16.ico" type="image/x-icon" />
    <link rel="stylesheet" href="//g.alicdn.com/damai/??/vue-pc/0.0.49/vendor.css,vue-pc/0.0.49/search/search.css" />
    <link rel="stylesheet" href="//g.alicdn.com/??damai/pc/1.0.52/p/head/index.css,damai/pc/1.0.52/p/footer/index.css" />
</head>
<body data-spm="search_category">
<script>
</script>
<!--页面头部 start-->
<style>
    .sidebar .item:nth-last-child(2){
        /*display: none;*/
    }
    .dm-header-banner {
        width: 100%;
        height: 60px;
        background-repeat: no-repeat;
        background-size: cover;
    }


</style>

<div id="container"></div>

<div class="dm-header-wrap">
    <div class="dm-header-box" data-spm="top">
        <a href="/home"><img class="i-logo" src="/wl/picture/tb1fbvffu3thkvjszsgxxx4qfxa-230-104.png" alt="大麦" /></a>
        <div class="location-header">
            <img class="i-icon-location" src="//img.alicdn.com/tfs/TB1XHDuxNGYBuNjy0FnXXX5lpXa-28-32.png" alt="定位">
            <span class="city-location">全国</span>
            <img class="i-arrow-location" src="https://img.alicdn.com/tfs/TB1vnUBxStYBeNjSspaXXaOOFXa-20-12.png" alt="箭头">
            <div class="city-header-wrap">
                <div class="city-header" data-spm="city">
                    <div class="now-city">
                        <span class="title-city">当前城市:</span>
                        <span class="name-city select-city">全国</span>
                    </div>
                    <div class="hot-city">
                        <span class="title-city">热门城市:</span>
                        <div class="list-other"></div>
                    </div>
                    <div class="other-city">
                        <span class="title-city">其他城市:</span>
                        <div class="list-other"></div>
                    </div>
                </div>
            </div>
        </div>
        <div class="recommend-header">
            <a href="/home" class="type-recommend select" data-spm="dhome">首页</a>
            <a href="/search" class="type-recommend" data-spm="dcategory">分类</a>

        </div>
        <div class="right-header" data-spm="nick">
            <div class="box-header user-header">
                <a href="javascript:void(0)" class="J_userinfo_img" data-spm="duserinfo"><img class="i-box-header i-user" src="//img.alicdn.com/tfs/TB14UKCGQyWBuNjy0FpXXassXXa-54-54.png"></a>
                <a href="//passport.damai.cn/accountinfo/myinfo" class="J_userinfo_name" data-spm="duserinfo">
                    <div class="span-box-header name-user"></div> </a>
                <div class="list-wrap">
                    <div class="list-login">
                        <div class="login-user show">
                            <span class="span-box-header span-user" data-spm="dlogin" onclick="loginUser()">登录</span>
                        </div>
                        <div class="list-wrap">
                            <div class="list-login">
                                <a href="/myselfInfo" class="li-login select" data-spm="duserinfo">个人信息</a>
                                <a href="/lgf2" class="li-login" data-spm="daccountsetting">账号设置</a>
                                <a href="/orderList" class="li-login" data-spm="dordermanage">订单管理</a>
                                <a href="javascript:logout()" data-spm="dexit" class="li-login out-login">退出登录</a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="box-header download-header">
                <img class="i-box-header i-download" src="//img.alicdn.com/tfs/TB1A9eIGKuSBuNjy1XcXXcYjFXa-54-54.png" alt="下载">
                <span class="span-box-header">下载</span>
                <div class="ewm-download">
                    <img class="i-ewm" src="//img.alicdn.com/tfs/TB1TBEJSkvoK1RjSZFNXXcxMVXa-280-280.jpg">
                </div>
            </div>
        </div>
        <div class="search-header" data-spm="searchtxt">
            <img class="i-search" src="//img.alicdn.com/tfs/TB1qv3jxGmWBuNjy1XaXXXCbXXa-34-36.png" alt="搜索">
            <input class="input-search" placeholder="搜索明星、演出、体育赛事" data-spm="dsearchbtn" id="searchGood">
            <div class="btn-search" data-spm="dsearchbtn2" onclick="searchButton()">
                搜索
            </div>
            <div class="list-search-wrap">
                <div class="list-search">
                </div>
            </div>
        </div>
    </div>
</div>

<!--ding wei-->


<div class="search-box">
    <div data-v-282d8183="" class="search-box-top">
        <!---->共
        <span data-v-282d8183="" class="search-box-keyword" id="searchGoodsCount"> </span>个商品
        <!---->
    </div>
    <div class="search-box-flex">
        <div class="search-main">
            <div data-v-070cc5f9="" class="search-factor">
                <div data-v-69d634e0="" data-v-070cc5f9="" class="factor-item">
                    <span data-v-69d634e0="" class="factor-title"> 城 市： </span>
                    <div data-v-69d634e0="" class="factor-content">
                        <div data-v-070cc5f9="" data-v-69d634e0="" class="factor-selected">
<!--
                            <span data-v-070cc5f9="" data-v-69d634e0="" class="factor-selected-city">北京</span>
-->
                            <span data-v-69d634e0="" title="-1" class="factor-content-item factor-content-item-default cityName" onclick="cityselect(this)">全部</span>

                        </div>
                        <div data-v-69d634e0="" class="factor-content-main"  >
                            <div data-v-69d634e0="" class="factor-content" id="cityMain">

                            </div>
                        </div>
                    </div>
                </div>
                <div data-v-69d634e0="" data-v-070cc5f9="" class="factor-item">
                    <span data-v-69d634e0="" class="factor-title"> 分 类： </span>
                    <div data-v-69d634e0="" class="factor-content">
                        <div data-v-69d634e0="" class="factor-content-main">
                            <span data-v-69d634e0="" title="-1"  class="factor-content-item typeName" onclick="typeselect(this)">全部</span>
                            <div data-v-69d634e0="" id="goodsType"  class="factor-content">
                            </div>
                            <!---->
                        </div>
                    </div>
                </div>
                <div data-v-3e6d586a="" data-v-070cc5f9="" class="factor-item">
                    <span data-v-3e6d586a="" class="factor-title"> 时 间： </span>
                    <div data-v-3e6d586a="" class="factor-content">
                        <span data-v-69d634e0="" title="-1" class="factor-content-item timeName" onclick="timeselect(this)">全部</span> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
                        <span data-v-69d634e0="" title="today" class="factor-content-item timeName" onclick="timeselect(this)">今天</span> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
                        <span data-v-69d634e0="" title="tomorrow" class="factor-content-item timeName" onclick="timeselect(this)">明天</span> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
                        <span data-v-69d634e0="" title="oneMonth" class="factor-content-item timeName" onclick="timeselect(this)">一个月内</span> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
                        <!--<span data-v-69d634e0="" data-spm="userTime" class="factor-content-item">自定义时间</span> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
                        <div data-v-26b44be2="" data-v-3e6d586a="" class="calendar">
                            <div data-v-26b44be2="" class="calendar-slot">
                                <input type="date" class="form-control" />
                            </div>
                            &lt;!&ndash;&ndash;&gt;
                        </div>-->
                    </div>
                </div>
            </div>
            <div data-v-459e3433="" class="search-sort search-main-sort">
                <div data-v-459e3433="" class="search-sort_fl">
                    <span data-v-459e3433="" class="search-sort-item search-sort-item-active" onclick="orderGoods(1)">推荐排序</span>
                    <span data-v-459e3433="" class="search-sort-item search-sort-item-active" onclick="orderGoods(2)">最近开场</span>
                    <span data-v-459e3433="" class="search-sort-item search-sort-item-active" onclick="orderGoods(3)">最新上架</span>
                </div>

            </div>
            <!--商品信息-->
            <div class="search__itemlist">
                <div data-v-0a2cd810="" class="item__main">
                    <div data-v-0a2cd810="" class="item__box" id="allgoods">




                    </div>
                    <!---->
                    <!---->
                </div>
                <div class="pagination">
                    <div class="el-pagination is-background">
                        <button type="button" disabled="disabled" class="btn-prev"><i class="el-icon el-icon-arrow-left"></i></button>
                        <ul class="el-pager">
                            <li class="number active">1</li>
                            <!---->
                            <li class="number">2</li>
                            <!---->
                            <li class="number">3</li>
                        </ul>
                        <button type="button" class="btn-next"><i class="el-icon el-icon-arrow-right"></i></button>
                    </div>
                </div>
            </div>
            <!--商品信息-->
        </div>
        <!--右侧悬浮-->
        <div class="search search-like" style="">
            <div class="search__title">
                您可能还喜欢
            </div>
            <div class="search__box">
                <div class="search__item">
                    <a href="//detail.damai.cn/item.htm?id=654512841424&amp;spm=a2oeg.search_category.recommend.4&amp;clicktitle=日本圆谷正版授权奥特曼系列舞台剧《奥特英雄银河格斗——粉碎阴谋》" target="_blank" data-spm="test" class="search__item__poster"><img src="//img.alicdn.com/bao/uploaded/https://img.alicdn.com/imgextra/i2/2251059038/O1CN01XNFyzx2GdSLTF7xBC_!!2251059038.png_q60.jpg_.webp" alt="" /></a>
                    <div class="search__item__info">
                        <a href="//detail.damai.cn/item.htm?id=654512841424&amp;spm=a2oeg.search_category.recommend.4&amp;clicktitle=日本圆谷正版授权奥特曼系列舞台剧《奥特英雄银河格斗——粉碎阴谋》" target="_blank" class="search__item__info__title">日本圆谷正版授权奥特曼系列舞台剧《奥特英雄银河格斗——粉碎阴谋》</a>
                        <div class="search__item__info__venue">
                            朝阳剧场
                        </div>
                        <div class="search__item__info__venue">
                            2021.09.30-10.01
                        </div>
                        <div class="search__item__info__price">
                            <strong>180.0元</strong>起
                        </div>
                    </div>
                </div>
                <div class="search__item">
                    <a href="//detail.damai.cn/item.htm?id=655067207735&amp;spm=a2oeg.search_category.recommend.4&amp;clicktitle=北京儿艺 大型恐龙童话剧《你看起来好像很好吃》" target="_blank" data-spm="test" class="search__item__poster"><img src="//img.alicdn.com/bao/uploaded/https://img.alicdn.com/imgextra/i3/2251059038/O1CN01wPhdP62GdSLUoTxbs_!!2251059038.jpg_q60.jpg_.webp" alt="" /></a>
                    <div class="search__item__info">
                        <a href="//detail.damai.cn/item.htm?id=655067207735&amp;spm=a2oeg.search_category.recommend.4&amp;clicktitle=北京儿艺 大型恐龙童话剧《你看起来好像很好吃》" target="_blank" class="search__item__info__title">北京儿艺 大型恐龙童话剧《你看起来好像很好吃》</a>
                        <div class="search__item__info__venue">
                            顺义大剧院
                        </div>
                        <div class="search__item__info__venue">
                            2021.09.19 周日
                        </div>
                        <div class="search__item__info__price">
                            <strong>80.0元</strong>起
                        </div>
                    </div>
                </div>
                <div class="search__item">
                    <a href="//detail.damai.cn/item.htm?id=652134193861&amp;spm=a2oeg.search_category.recommend.4&amp;clicktitle=大船文化&middot;加拿大原版全场互动亲子剧《你是演奏家2&middot;超级金贝鼓》" target="_blank" data-spm="test" class="search__item__poster"><img src="//img.alicdn.com/bao/uploaded/https://img.alicdn.com/imgextra/i4/2251059038/O1CN018aZAZ02GdSLELl78c_!!2251059038.png_q60.jpg_.webp" alt="" /></a>
                    <div class="search__item__info">
                        <a href="//detail.damai.cn/item.htm?id=652134193861&amp;spm=a2oeg.search_category.recommend.4&amp;clicktitle=大船文化&middot;加拿大原版全场互动亲子剧《你是演奏家2&middot;超级金贝鼓》" target="_blank" class="search__item__info__title">大船文化&middot;加拿大原版全场互动亲子剧《你是演奏家2&middot;超级金贝鼓》</a>
                        <div class="search__item__info__venue">
                            大麦&middot;超剧场
                        </div>
                        <div class="search__item__info__venue">
                            2021.10.15-10.16
                        </div>
                        <div class="search__item__info__price">
                            <strong>180.0元</strong>起
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!--页面尾部  start-->
<div class="dm-footer">
    <div class="w1200">
        <ul class="footer__links">
            <li class="footer__links__list"><a href="//help.damai.cn" target="_blank" data-spm="flink0">帮助中心</a></li>
            <li class="footer__links__grep">|</li>
            <li class="footer__links__list"><a href="//help.damai.cn/helpPage.htm?pageId=69&amp;categoryId=30" target="_blank" data-spm="flink1">公司介绍</a></li>
            <li class="footer__links__grep">|</li>
            <li class="footer__links__list"><a href="//help.damai.cn/helpPage.htm?pageId=70&amp;categoryId=30" target="_blank" data-spm="flink2">品牌识别</a></li>
            <li class="footer__links__grep">|</li>
            <li class="footer__links__list"><a href="//help.damai.cn/helpPage.htm?pageId=72&amp;categoryId=30" target="_blank" data-spm="flink3">公司大事记</a></li>
            <li class="footer__links__grep">|</li>
            <li class="footer__links__list"><a href="//help.damai.cn/helpPage.htm?pageId=40&amp;categoryId=14" target="_blank" data-spm="flink4">协议及隐私权政策</a></li>
            <li class="footer__links__grep">|</li>
            <li class="footer__links__list"><a href="//jubao.alibaba.com/internet/readme.htm?spm=a2o6e.search.0.0.72f44d15Votov6&amp;site=damai" target="_blank" data-spm="flink5">廉正举报</a></li>
            <li class="footer__links__grep">|</li>
            <li class="footer__links__list"><a href="//help.damai.cn/helpPage.htm?pageId=58&amp;categoryId=5" target="_blank" data-spm="flink6">联系合作</a></li>
            <li class="footer__links__grep">|</li>
            <li class="footer__links__list"><a href="//job.alibaba.com/zhaopin/positionList.htm?keyWord=JXU1OTI3JXU5RUE2&amp;_input_charset=UTF-8" target="_blank" data-spm="flink7">招聘信息</a></li>
            <li class="footer__links__grep">|</li>
            <li class="footer__links__list"><a href="//x.damai.cn/markets/special/fangzhapian?spm=a2o6e.home.0.0.75df48d3hqGWGD&amp;wh_ttid=pc" target="_blank" data-spm="flink8">防骗秘籍</a></li>
        </ul>
        <div class="footer__ft">
            <div class="footer__ft_fl">
                <a href="//www.damai.cn/?spm=a2o6e.home.0.0.591b48d3QzpG8B" target="_blank" class="footer__ft__logo"> <img src="https://img.alicdn.com/tfs/TB1otMASmzqK1RjSZPxXXc4tVXa-167-60.png" /> </a>
                <div class="footer__ft__code__box">
                    <img class="footer__ft__code" src="//img.alicdn.com/tfs/TB1TBEJSkvoK1RjSZFNXXcxMVXa-280-280.jpg" alt="" />
                    <span>APP下载</span>
                </div>
            </div>
            <div class="footer__ft_fr">
                <div class="footer__fr__contact">
                    <a style="margin-left:0;" href="//online.damai.cn/alime/index?from=damai_pc_item&amp;v=3" class="footer__fr__contact__btn alime">在线客服</a>
                </div>
                <ul class="footer__ft__words">
                    <li class="footer__ft__certificate"><a href="https://gw.alicdn.com/imgextra/i2/O1CN01J1OnUU1g76CE6kSh6_!!6000000004094-0-tps-2480-3507.jpg" target="_blank">京ICP证031057号</a></li>
                    <li class="footer__ft__grep">|</li>
                    <li class="footer__ft__certificate"><a href="https://beian.miit.gov.cn/#/Integrated/recordQuery" target="_blank">京ICP备11043884号</a></li>
                    <li class="footer__ft__grep">|</li>
                    <li class="footer__ft__certificate"><a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11010502037341" target="_blank">京公网安备11010502037341号</a> </li>
                    <li class="footer__ft__grep">|</li>
                    <li class="footer__ft__certificate"><a href="https://gw.alicdn.com/imgextra/i2/O1CN0154oubE1iLsBEGmx9V_!!6000000004397-2-tps-1694-1138.png" target="_blank">广播电视节目制作经营许可证(京)字第02253号</a></li>
                </ul>
                <ul class="footer__ft__words">
                    <li class="footer__ft__certificate"><a href="https://gw.alicdn.com/imgextra/i2/O1CN01tlZwxM1LiYeoBTfIB_!!6000000001333-0-tps-2480-3507.jpg" target="_blank">网络文化经营许可证 京网文[2019]4082-420号</a></li>
                    <li class="footer__ft__grep">|</li>
                    <li class="footer__ft__certificate"><a href="https://gw.alicdn.com/imgextra/i1/O1CN01V4XPXw1TNxm6UL9RO_!!6000000002371-0-tps-1653-2339.jpg" target="_blank">营业性演出许可证京市演587号</a></li>
                </ul>
                <ul class="footer__ft__words">
                    <li class="footer__ft__certificate">北京大麦文化传媒发展有限公司 版权所有</li>
                    <li class="footer__ft__certificate"><a href="//www.damai.cn/?spm=a2o6e.home.0.0.591b48d3QzpG8B">大麦网</a></li>
                    <li>Copyright 2003-2020 All Rights Reserved</li>
                </ul>
                <ul class="footer__ft__words">
                    <li>举报投诉：damai_tousu@member.alibaba.com 浙江省杭州市余杭区文一西路969号</li>
                </ul>
                <ul class="footer__ft__words">
                    <li>违法不良信息举报电话：020-62108294</li>
                </ul>
                <div class="footer__ft__img">
                    <a rel="nofollow" title="电子营业执照" target="_blank" href="https://gw.alicdn.com/tfs/TB1U0tdqmR26e4jSZFEXXbwuXXa-844-587.png"> <img class="footer__ft__img2" alt="" src="//img.alicdn.com/tfs/TB1ZO80pyOYBuNjSsD4XXbSkFXa-141-41.png" /> </a>
                    <a rel="nofollow" target="_blank" href="https://www.pcisecuritystandards.org/"> <img src="//img.alicdn.com/tfs/TB1Y580pyOYBuNjSsD4XXbSkFXa-83-50.png" class="footer__ft__img3" /> </a>
                    <a target="_blank" href="https://search.szfw.org/cert/l/CX20130327002367002885" id="___szfw_logo___"> <img class="footer__ft__img4" src="//img.alicdn.com/tfs/TB1C4nNxTlYBeNjSszcXXbwhFXa-114-42.png" /> </a>
                    <script type="text/javascript">(function () {
                        document.getElementById('___szfw_logo___').oncontextmenu = function () {
                            return false;
                        }
                    })();</script>
                </div>
            </div>
        </div>
    </div>
</div>
<style>
    .sidebar{top: 72.5%;}
    .sidebar .item .icon {
        background-image: url(https://img.alicdn.com/tfs/TB1u1U9xmzqK1RjSZFHXXb3CpXa-64-180.png);
    }
    img{border: 0;}
    .sidebar .item .qrcode{
        background: #fff url('//img.alicdn.com/tfs/TB1TBEJSkvoK1RjSZFNXXcxMVXa-280-280.jpg') no-repeat center center;
        background-size: 90%;
    }
    .sidebar .item .qrcode img{display:none;}
</style>
<script type="text/javascript" src="https://g.alicdn.com/dt/tracker/3.5.4/??tracker.Tracker.js,tracker.interfaceTrackerPlugin.js,tracker.performanceTrackerPlugin.js" crossorigin=""></script>
<script type="text/javascript">

    var tracker = new window.Tracker({
        pid: 'damaipc',
        plugins: [
            [window.interfaceTrackerPlugin],
            [window.performanceTrackerPlugin]
        ],
    });

    // 启动 tracker 并监听全局 JS 异常
    tracker.install();

    (function(){var f=function(){};if(!window.console){window.console={log:f,info:f,warn:f,debug:f,error:f}}}());
</script>
<!--script src="//g.alicdn.com/sd/baxia/1.0.11/baxiaCommon.js"></script-->
<div class="server_info" style="display:none;color:#f3f3f3;text-align:center;"></div>
<script data-config="{combine:true}" src="//g.alicdn.com/kissy/k/6.2.4/seed.js"></script>
<script src="djh/index.js" async=""></script>

</body>

<script th:inline = "javascript">

    //给登录添加on属性
    $(".user-header").on("mouseover",
        function (){
            $(".user-header").addClass("on");
        })
    $(".user-header").on("mouseout",
        function (){
            $(".user-header").removeClass("on");
        })

    //登录后显示登录信息
    $.ajax({
        url:"/home/getLoginInfo",
        success:function(data){
            if(data.loginInfo==300){
                $(".name-user").removeClass("show");
                $(".login-user").addClass("show");
                $(".out-login").removeClass("show");
            }else{
                $(".i-user").prop("src",data.loginInfo.userImg);
                $(".name-user").html(data.loginInfo.userName);
                $(".name-user").addClass("show");
                $(".login-user").removeClass("show");
                $(".out-login").addClass("show");
            }
        }
    })
    //跳转登录
    function loginUser(){
        location.href="/login";
    }
    //登录要修改js文件 span-user 的location.href




    var cityId = "-1";
    var typeId = "-1";
    var timeShow = "-1";
    var searchButtongoods="";
    var orderdesc = 0;

    /**
     * 排序
     */
    function orderGoods(num){
        orderdesc = num;
        selectGoodsByType(cityId,typeId,timeShow,searchButtongoods,orderdesc);
        selectGoodsCount(cityId,typeId,timeShow,searchButtongoods,orderdesc);

    }

    /*
    *
    *  */
        var goodsToSearch = [[${goodsToSearch}]];
       if(goodsToSearch != null){
           if(goodsToSearch.goodsCityId !=null){
               cityId = goodsToSearch.goodsCityId; // 获取首页传过来的 城市
           }
           if(goodsToSearch.goodsTypeId !=null){
               typeId = goodsToSearch.goodsTypeId;//获取前台传过来的类型
           }
           if(goodsToSearch.searchGoods != null&&goodsToSearch.searchGoods!="undefined"){
               searchButtongoods = goodsToSearch.searchGoods;// 获取搜索框里的数据
           }
       }
        console.log( goodsToSearch)
    /* canshu*/
    /*页面加载*/
    $(function (){
        selectGoodsByType(cityId,typeId,timeShow,searchButtongoods,orderdesc);
        selectGoodsCount(cityId,typeId,timeShow,searchButtongoods,orderdesc);
    })
    $.ajax({
        url:"/selectOnePage/selectAllCity",
        success:function (data){
            $("#cityMain").html(data)
        },
        error:function (){
            alert("城市查询失败")
        }
    })
    $.ajax({
        url:"/selectOnePage/selectAllType",
        success:function (data){
            $("#goodsType").html(data);
            $("#goodsType").trigger("create");
        },
        error:function (){
            alert("类型查询失败")
        }
    })


    /**
     * cha xun shangpin
     * @cityId chengshiid string
     *  typeid         string
     *  timeID   String
     * @param aa
     */
    function selectGoodsByType(cityId,typeId,timeShow,searchButtongoods,orderdesc){
         $.ajax({
             url:"/selectOnePage/selectGoodsByType",
             data:{cityId:cityId,typeId:typeId,timeShow:timeShow,searchButtongoods:searchButtongoods,orderdesc:orderdesc},
             success:function (data){
                 $("#allgoods").html(data);
             },
             error:function (){
                 alert("查询商品失败");
             }
         })
    }
    /**
     * 查询数量 条查的商品
     */
    function selectGoodsCount(cityId,typeId,timeShow,searchButtongoods,orderdesc){
         $.ajax({
             url:"/selectOnePage/selectGoodsCount",
             data:{cityId:cityId,typeId:typeId,timeShow:timeShow,searchButtongoods:searchButtongoods,orderdesc:orderdesc},
             success:function (data){
                 $("#searchGoodsCount").html(data);
             },
             error:function (){
                 alert("查询商品数量失败");
             }
         })
    }

    /*function bianse(aa){
        alert(aa.title);
    }*/

    function cityselect(a){
        var t = document.getElementsByClassName("cityName");
        for(var i = 0;i < t.length;i++){
            t[i].style.cssText="background-color: white;"
        }
        a.style.cssText="background-color: red;"
        cityId = a.title;
        selectGoodsByType(cityId,typeId,timeShow,searchButtongoods,orderdesc);
        selectGoodsCount(cityId,typeId,timeShow,searchButtongoods,orderdesc);
    }

    function typeselect(a){
        var t = document.getElementsByClassName("typeName");
        for(var i = 0;i < t.length;i++){
            t[i].style.cssText="background-color: white;"
        }
        a.style.cssText="background-color: red;"
        typeId = a.title;
        alert(typeId)
        selectGoodsByType(cityId,typeId,timeShow,searchButtongoods,orderdesc);
        selectGoodsCount(cityId,typeId,timeShow,searchButtongoods,orderdesc);
    }
    function timeselect(a){
        var t = document.getElementsByClassName("timeName");
        for(var i = 0;i < t.length;i++){
            t[i].style.cssText="background-color: white;"
        }
        a.style.cssText="background-color: red;"
        timeShow = a.title;
        selectGoodsByType(cityId,typeId,timeShow,searchButtongoods,orderdesc);
        selectGoodsCount(cityId,typeId,timeShow,searchButtongoods,orderdesc);
    }


    /**
     * sou suo kuang
     */
    function searchButton(){
        location.href="/homeJump/toSearch?searchGoods="+$("#searchGood").val();
    }









    //给登录添加on属性
    $(".user-header").on("mouseover",
        function (){
            $(".user-header").addClass("on");
        })
    $(".user-header").on("mouseout",
        function (){
            $(".user-header").removeClass("on");
        })

    //登录后显示登录信息
    $.ajax({
        url:"/home/getLoginInfo",
        success:function(data){
            if(data.loginInfo==300){
                $(".name-user").removeClass("show");
                $(".login-user").addClass("show");
                $(".out-login").removeClass("show");
            }else{
                $(".i-user").prop("src",data.loginInfo.userImg);
                $(".name-user").html(data.loginInfo.userName);
                $(".name-user").addClass("show");
                $(".login-user").removeClass("show");
                $(".out-login").addClass("show");
            }
        }
    })
    //跳转登录
    function loginUser(){
        alert(111)
        location.href="/login";
    }
    //退出登录
    function logout(){
        $.ajax({
            url:"/home/logout",
            success:function(){
                //刷新页面
                location.reload();
            }
        })
    }
    document.getElementById("index_detailinfo").scrollTop = 0;
</script>
</html>